<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" href="css/mui.min.css" type="text/css" charset="utf-8" />
		<style>
			.text-center{text-align: center;}
			.dialog-content{padding:0 20px 20px 20px;}
			.line {
				background: #0ab0e4;
				height: 2px;
				width: 100%;
			}
			.title{
				color:#0ab0e4;
				line-height:40px; margin:0px;
			}
			.dialogContent{
				padding:0.8rem 0.2rem; 
				color: #666; 
			}
			.dialog-content .buttons button {
				width: 48%;
			    background: #fff;
			    border: 1px solid #0ab0e4;
    			color: #0ab0e4;
			    border-radius: 3px;
			    padding: 0px;
			    height: 36px;
			    line-height:36px; outline: none;
			}
			
			.dialog-content .buttons button.confrim {
				background: #0ab0e4;
				border: none;
				color: #fff;
				border-radius: 3px;
			}
			
		 
			p{font-size:16px !important;}
		</style>
	</head>
	<body style="background:transparent !important;text-align: center;">
		<div class="loading mui-hidden" style="background:#fff;padding:20px 10px 20px 20px;display: inline-block;border-radius:5px;margin:auto;">
			<div class="mui-pull-loading mui-icon mui-spinner"></div>
		</div>
		 
			<div class="dialog-content" style="background:#fff;">
			<p class="colorblue title  text-center">退出扫码</p>
			<div class="line"></div>
			<div class="dialogContent text-center"><p class="dialogCon">确定退出吗？当前扫码进度将被保留</p></div>
			<div class="buttons text-center">
			<button id="dialog-cancel" >取消</button> 
			<button class="confrim"  id="dialog-confrim">确定</button> 
			
 		 <script src="js/resize.js"></script>
		 <script src="js/mui.min.js"></script>
		  <script src="js/ajaxFun.js"></script>
		<script>
		(function($, doc) {
			$.plusReady(function() {
				var current=plus.webview.currentWebview();
				mui(document.body).on('tap', '#dialog-cancel', function(e) {
					current.close();
				})
				mui(document.body).on('tap', '#dialog-confrim', function(e) {
					/*var loadingEle=document.querySelector('.loading');
					removeClass(loadingEle,'mui-hidden') ;
					addClass(document.querySelector('.dialog-content'),'mui-hidden');			
					 */
					var bwindow=plus.webview.getWebviewById('barcode_scan');
					if(bwindow){
						console.log('ddddddd');
						current.close();
						bwindow.close();
					} 
				});


				 
			 
			})
		}(mui,document))
		</script>  
	</body>
</html>
